﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using AssetManageSystem.Model.AssetManage;


namespace AssetManageSystem.ViewModel.AssetManage.AssetDonationVMs
{
    public partial class AssetDonationSearcher : BaseSearcher
    {
        [Display(Name = "受捐人")]
        public String Name { get; set; }
        [Display(Name = "受捐单位")]
        public String Unit { get; set; }
        [Display(Name = "捐赠日期")]
        public DateRange OutDate { get; set; }
        public List<ComboSelectListItem> AllAssetIds { get; set; }
        public List<Guid> SelectedAssetIdIDs { get; set; }

        protected override void InitVM()
        {
            AllAssetIds = DC.Set<AssetInfo>().GetSelectListItems(Wtm, y => y.AsName);
        }

    }
}
